import request from '@/utils/request'

export function pageApi (parameter) {
    return request({
        url: '/v1/m/familyInfo',
        method: 'get',
        params: parameter
    })
}

export function deleteByIdsApi (parameter) {
    return request({
        url: `/v1/m/familyInfo/${parameter}`,
        method: 'delete'
    })
}

export function addFamilyInfoApi (data) {
  return request({
      url: `/v1/m/familyInfo`,
      method: 'post',
      data
  })
}

export function detailApi (params) {
  return request({
      url: `/v1/m/familyInfo/${params}`,
      method: 'get'
  })
}
